package lianxi3;

public class Student extends People {
    private String someThing;

    public Student() {
    }

    public Student(String someThing) {
        this.someThing = someThing;
    }
    public Student(String name,  String subject) {
        super(name);
        this.someThing = subject;
    }

    @Override
    public void doing(){
        System.out.println(getName() + " 正在做 " + someThing );
    }


    /**
     * 获取
     * @return someThing
     */
    public String getSomeThing() {
        return someThing;
    }

    /**
     * 设置
     * @param someThing
     */
    public void setSomeThing(String someThing) {
        this.someThing = someThing;
    }

    public String toString() {
        return "Student{someThing = " + someThing + "}";
    }
}
